import http from "@/http/index.ts"
import {LogListParam,SysOperLogClean} from '@/api/log/type.ts'


// 列表
export const getListApi = (data:LogListParam) => {
    return http.get("/log/getLogList",data)
}


// 获取单条日志详情
export const getLogDetail = (id:number) => {
    return http.get(`/log/logDetail/${id}`)
}


// 获取日志标题
export const getLogTitle = () => {
    return http.get(`/log/logTitle`)
}


// 清理日志
export const deleteApi = (data: SysOperLogClean) => {
    return http.delete('/log/logClean',data)
}



